package ke07;

import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.Scanner;

public class ReadFromUrl {

	/**
	 * @param args
	 * @throws IOException, MalformedURLException 
	 */
	public static void main(String[] args) throws IOException {

		URL url = new URL("http://dl.dropbox.com/u/1482728/Text.txt");
		
		url.getContent();
		
	    InputStream inStream = url.openStream();
	    
	    Scanner s = new Scanner(inStream);
	    
	    while(s.hasNextLine()) {
	    	System.out.println(s.nextLine());
	    }
	    
	}

}
